﻿#ifndef REMOVENTHFROMEND_H_
#define REMOVENTHFROMEND_H_

namespace algorithm {
    /**
     * @brief 删除链表的倒数第 N 个结点，并且返回链表的头结点.
     * https://leetcode.cn/problems/remove-nth-node-from-end-of-list/description/
     */
    class CRemoveNthFromEnd
    {
    public:
        static ListNode* Remove(ListNode* head, int n);
    };
}

#endif //!REMOVENTHFROMEND_H_
